import { post } from '@/utils/request'

// 登录API
export async function loginApi(userName, userPassword) {
  return await post('/api/login', {
    user_name: userName,
    user_password: userPassword
  })
}

// 注册API
export async function registerApi(userId, userName, userPassword, userJurisdiction) {
  return await post('/api/user', {
    user_id: userId,
    user_name: userName,
    user_password: userPassword,
    user_jurisdiction: userJurisdiction
  })
}

// 获取用户信息API
